//
//  EventDetilesInfoViewController.m
//  HaiGoumerMerchant
//
//  Created by apple on 17/1/18.
//  Copyright © 2017年 com.zaoguankeji.www. All rights reserved.
//

#import "EventDetilesInfoViewController.h"
#import "YZNavigationMenuView.h"
@interface EventDetilesInfoViewController ()<YZNavigationMenuViewDelegate>
@property (nonatomic, strong) YZNavigationMenuView *menuView ;
@end

@implementation EventDetilesInfoViewController
- (YZNavigationMenuView *)menuView {
    if(_menuView == nil) {
        
        YZNavigationMenuView *menuView = [[YZNavigationMenuView alloc] initWithPositionOfDirection:CGPointMake(self.view.frame.size.width - 24, 0) images:nil titleArray:@[@"结束活动",@"复制活动",@"返回"]];
        self.menuView = menuView;
        
    }
    return _menuView;
    
    
}
- (void)setUplistSelectView {
    self.menuView.clickedBlock = ^(NSInteger index){
      
    };
    [self.view addSubview:_menuView];
    
}
#pragma YZNavigationMenuViewDelegate
- (void)navigationMenuView:(YZNavigationMenuView *)menuView clickedAtIndex:(NSInteger)index;
{
    NSLog(@"------我是第%ld栏",index + 1);
}

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configureEventDetilesInfoViewControllerNavgiationItem];
    // Do any additional setup after loading the view.
}


-(void)configureEventDetilesInfoViewControllerNavgiationItem {
  
    UIBarButtonItem *listrightBackButton = [[UIBarButtonItem alloc] initWithTitle:@"保存" style:UIBarButtonItemStyleDone target:self action:@selector(showListView)];
    self.navigationItem.rightBarButtonItems = @[listrightBackButton];
    [self.navigationController.navigationBar setShadowImage:[UIImage new]];
    
}

- (void)showListView {
    
    [self setUplistSelectView];
    
    
}

@end
